//
//  Const.swift
//  Community
//
//  Created by Vampire on 2019/7/18.
//  Copyright © 2019 ZKJ. All rights reserved.
//

import UIKit

let MAINSCREEN = UIScreen.main.bounds//bounds

let MAINWIDTH = UIScreen.main.bounds.width//宽

let MAINHEIGHT = UIScreen.main.bounds.height//高


let BACKGROUNGCOLOR = UIColor(red: 250.0/255.0, green: 250.0/255.0, blue: 250.0/255.0, alpha: 1)//背景颜色

let BORADCOLOR = UIColor(red: 215.0/255.0, green: 215.0/255.0, blue: 215.0/255.0, alpha: 1)

//机型高度 bool类型
let kScreenIphone4And4s = (UIScreen.main.bounds.height == 480)
let kScreenIphone5And5s = (UIScreen.main.bounds.height == 568)
let kScreenIphone6And6s = (UIScreen.main.bounds.height == 667)
let kScreenIphone6pAnd6sp = (UIScreen.main.bounds.height == 736)
let kScreenIphoneX = (UIScreen.main.bounds.height == 812) || (UIScreen.main.bounds.height == 896)

//UIApplication.shared.statusBarFrame.size.height
let StatusBarHeight = UIApplication.shared.statusBarFrame.size.height //状态栏高度
let NavBarHeight = CGFloat(44)
let AllTopNavHeight = StatusBarHeight + NavBarHeight//导航栏高度
let TabBarHeight = CGFloat(kScreenIphoneX ? 83.0 : 49.0)//tabBar高度
